package config

type Consul struct {
	Host    string `yaml:"host"`
	Port    int    `yaml:"port"`
	Token   string `yaml:"token"`
	Address string `yaml:"address"`
}

// Consul 配置文件实体
type ConsulConfig struct {
	Config    ConfigDetails `yaml:"config" mapstructure:"config"`
	Discovery ConfigDetails `yaml:"discovery" mapstructure:"discovery"`
}

type ConfigDetails struct {
	Host     string `yaml:"host" mapstructure:"host"`
	Port     int    `yaml:"port" mapstructure:"port"`
	ACLToken string `yaml:"acl_token" mapstructure:"acl_token"`
}
